package day31_other;

/**
 * @ClassName Solution
 * @Description 暴力?
 * @Author clockTown
 * @Date 2021/6/9 19:13
 * @Version 1.0
 */
public class Solution1 {
    public int solve(int[] nums) {
        int count = 0;
        for (int i = 0; i < nums.length - 1; i++) {
            for (int j = i + 1; j < nums.length; j++) {
                if (nums[i] > (nums[j] * 3)){
                    count++;
                }
            }
        }
        return count;
    }
}
